home *** CD-ROM | disk | FTP | other *** search
GW-BASIC | 1996-04-01 | 5.3 KB | 119 lines |
- 10 CLEAR,32768:KEY OFF:CLS:A=0:B=0:H=0:M=0:D=0:Z=0
- 15 OUT &H43,54:OUT &H40,0:OUT &H40,0:OUT &H3FC,0:OUT &H2FC,0
- 20 GOTO 1020
- 30 X$="system":KEY 10,X$+CHR$(13)
- 35 KEY 5,"LIST 1000-"+CHR$(13):KEY 4,"SAVE"+CHR$(34)+"WXP"
- 40 PRINT" K3BC WEATHERFAX FOR VGA DISPLAY (640x480x16)":PRINT
- 50 PRINT:PRINT" Copies WX satellite photos and maps in a 16 gray (or color) shade format."
- 60 PRINT" SYSTEM CONFIGURATION can be viewed (and then modified) by hitting F5"
- 70 PRINT" twice and after inserting your system parameters, just SAVE(type F4) WXP."
- 80 PRINT" Requires a RAMDISK to be created in CONFIG.SYS to fit large file size. Can"
- 90 PRINT" scroll the Pix, SAVE it to disk or Print in Blk/wh (not gray shades)."
- 95 PRINT" F10 can be used to return to DOS prompt."
- 100 PRINT" Can be configured for LSB or USB receiving.":PRINT:PRINT
- 110 PRINT:PRINT:PRINT
- 115 PRINT" ---F5=SYS CONFIG or BASIC --- F10=DOS---"
- 120 INPUT" Do you want to copy now or later (N or L)?";X$
- 125 IF X$="" THEN X$="n"
- 127 IF X$="LIST 1000-" THEN CLS:PRINT" F5=SYS CONFIG F10=DOS F2=re-RUN": END
- 128 IF X$="system" THEN CLS: SYSTEM
- 130 IF X$="N" GOTO 250
- 140 IF X$="n" GOTO 250
- 150 IF X$="L" GOTO 175
- 160 IF X$="l" GOTO 175
- 170 GOTO 120
- 175 PRINT:PRINT:PRINT:PRINT:PRINT:PRINT
- 180 SHELL "ti":PRINT:PRINT:PRINT:PRINT:PRINT:PRINT" Now to choose your starting time (in 24 hour format)----":PRINT
- 190 PRINT:INPUT" What HOUR would you like to start?";H
- 200 A=1
- 210 INPUT" and MINUTES after the hour?";M
- 220 IF P$="Y" THEN D=1
- 230 IF P$="y" THEN D=1
- 240 T=0
- 250 PRINT:INPUT"..MINUTES of copy time (Default=14 min.)";T
- 260 IF T=0 THEN T=1680/120
- 270 B%=H
- 280 A%=M*256+D:D%=(120*T)
- 290 PRINT:INPUT" Do you want AUTO-SYNCHRONIZING (Y or N)";S$
- 295 IF S$="system" THEN CLS:SYSTEM
- 300 IF S$="Y" THEN B=256
- 310 IF S$="y" THEN B=256
- 315 IF S$="LIST 1000-" THEN CLS:PRINT" F5=SYS CONFIG F10=DOS F2=re-RUN": END
- 320 C%=A+B
- 330 DEF SEG=&H5F00:PRINT:PRINT" ...Program loading. Check for tuning."
- 340 IF B=256 THEN PRINT" .......You chose AUTO-SYNCH......."
- 350 BLOAD "3vgab.asm",&H100:POKE &H316,0
- 355 IF INF=2 THEN POKE &H3C3,2
- 360 LTB=INT(LT/256):LTA=LT-256*LTB:POKE &H4DE,LTA:POKE &H4DF,LTB
- 370 POKE &H175,GT:POKE &H4FD,SW
- 380 IF SB=1 THEN POKE &H19E,114:POKE &H1BA,114
- 390 IF SB=2 THEN POKE &H245,144:POKE &H246,144
- 400 IF CO=2 THEN POKE &H1D8,2:POKE &H1E5,2:POKE &H22C,2:POKE &H3C0,2:POKE &H723,2
- 410 IF TT=0 THEN POKE &H1D3,1
- 420 IF VC=2 THEN POKE &H15A,16
- 430 POKE &H7F0,ASC(DR$) 'RAMDISK drive-see line 1060 for designation
- 440 CLS:PRINT" If FAX audio is present and you chose to copy NOW, press 'G' to start."
- 450 PRINT"After copy is complete, press Q or V to view and scroll with the arrows."
- 460 PRINT"Faster scroll with (U)p and (D)own. Page Up , Page Down and Home have"
- 470 PRINT"their usual function. Hit 1 thru 4 for different color palettes and hit G"
- 480 PRINT"to call up 16 Gray shades. Hit B to blank the whole screen."
- 490 PRINT"Hit S to Shrink pix vertically and X to e(X)pand it back. The pix copied"
- 500 PRINT"is contained in a file, 'PIX.WX', in the RAM-DISK D: and can be COPYed"
- 510 PRINT"to hard or floppy disk. 'SEEPIX.BAS' is used for view, scroll and (P)rint."
- 520 PRINT"You can Halt copying at any time by hitting H. Hit S while copying to Skip"
- 530 PRINT"SYNC to the left by 1/7 screen width. If you chose AUTO-SYNC and the"
- 540 PRINT"SYNC sigs don't occur, hit SPACEBAR to bypass AUTO-SYNC."
- 550 K=&H100:CALL K(A%,B%,C%,D%)
- 560 DEF SEG=&H4F00
- 570 BLOAD "vu960a.asm",&H100
- 580 A$=DR$+":pix.wx"
- 590 IF VC=2 THEN POKE 408,16
- 600 K=&H100:CALL K(CX%,DX%,A$)
- 610 PRINT:PRINT:PRINT:INPUT" Would you like to SAVE the PIX -Yes or No (Default=N)";Z$
- 620 IF Z$="" THEN GOTO 640
- 630 IF Z$="y" THEN LI=1736:GOTO 650
- 640 GOTO 770
- 650 BLOAD "savepix.asm",&H100
- 651 PRINT:PRINT:PRINT:INPUT" Save it in compressed format--y or n (Default=y)";F$
- 652 IF F$="" THEN F$="y"
- 653 IF F$="system" THEN SYSTEM
- 654 IF F$="y" THEN PRINT:PRINT:PRINT:INPUT" What Path/Directory for compressed file (Default=Current)";X$:GOTO 657
- 655 IF F$="n" THEN GOTO 660
- 656 GOTO 651
- 657 IF X$="" THEN X$=WXP$:GOTO 660
- 660 PRINT:PRINT:PRINT:INPUT" How many lines would you like to save (Default=All)";LI
- 670 IF LI=0 THEN LI=1736
- 680 LIB=INT(LI/256):LIA=LI-256*LIB:POKE &H18B,LIA:POKE &H18C,LIB
- 685 IF DX%<0 THEN DX!=65536+DX% ELSE DX!=DX%
- 690 DXB=INT(DX!/256):DXA=DX!-256*DXB:POKE &H163,DXA:POKE &H164,DXB
- 700 CXB=INT(CX%/256):CXA=CX%-256*CXB:POKE &H166,CXA:POKE &H167,CXB
- 710 POKE &H192,224:POKE &H193,1:POKE &H1B9,224:POKE &H1BA,1
- 720 PRINT:PRINT:PRINT:INPUT" What File Name (Program will add Suffix---.960)";NF$
- 730 IF NF$="" THEN GOTO 720
- 740 ZF$=NF$+".960"
- 750 OF$=DR$+":pix.wx"
- 760 K=&H100:CALL K(A%,B%,OF$,ZF$)
- 761 IF F$="n" THEN GOTO 770
- 762 SHELL "wxpzip "+NF$+" "+X$+" "+DR$
- 770 PRINT:PRINT:PRINT:PRINT" HIT F2 TO COPY ANOTHER PIX---HIT F10 TO GOTO DOS"
- 780 END
- 1000 ' SYSTEM CONFIGURATION
- 1010 ' xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
- 1020 LT=13410 'Line Timing-use same value as determined by / and \ in WX prog.
- 1030 CO=1 'CO=1 is COM1----CO=2 is COM2
- 1040 TT=1 'Tone Tick-audio cue--TT=0 is OFF--TT=1 is ON
- 1050 GT=213 'Gross Timer-controls SYNC lock-lower value for slower computers
- 1060 'If too low gives a larger dead space in NON-SYNCed pix overlap
- 1070 DR$="d" 'RAMDISK drive designation
- 1080 SB=1 'Sideband to tune to--1=USB---2=LSB
- 1090 VC=1 'Video Card--1=VGA(640x480)---2=EGA(640x350)
- 1100 SW=30 'SYNC capture window (microsec). Larger for slower machines
- 1105 INF=1 '1=K3BC interface--2=other interface with RTS (pin 7) as +12
- 1107 WXP$="c:\tv\wxp\" 'Default path where WXP compressed files are saved
- 1110 GOTO 30
- 1115 ' ------- INSTRUCTIONS -------
- 1120 ' To change the configuration, move cursor and type new choice and
- 1130 ' ENTER. Move the cursor in the clear and hit F5 to check change.
- 1140 ' To save the change, move cursor in the clear, hit F4, then type
- 1150 ' WXP and ENTER. F2 will then reRUN the program or F10 goes to DOS.
-